package builder_pattern.type2;

import builder_pattern.type2.hero.*;

public class App {

    public static void main(String[] args) {
        Hero hero = new Hero.Builder("张三",new Profession())
                .withWeapon(new Weapon())
                .withArmor(new Armor())
                .withHairColor(new HairColor())
                .withHairType(new HairType())
                .build();
        System.out.println(hero);
    }
}
